﻿@using GameSchool.HtmlHelpers
@model GameSchool.Models.ExamModels.ExamQuestionModel
<div class="question">
    <div style="height: 2px; background-color: #EEE; text-align: center; margin-bottom: 15px;
        margin-top: 15px;">
        <span style="background-color: white; position: relative; top: -0.7em;"><strong>Spurning</strong>
        </span>
    </div>
    <a href="#" class="btn btn-small remove-question" style="float: left; position: absolute;">
        Fjarlægja</a>
    <input type="hidden" name="exam.ExamQuestions.Index" value="@Model.ExamQuestionNo" />
    <div class="control-group">
        @Html.LabelFor(examQuestion => examQuestion.ExamQuestion, new { @class = "control-label" }, "Spurning")
        <div class="controls">
            @Html.TextBox("exam.ExamQuestions[" + Model.ExamQuestionNo + "].ExamQuestion", "", new { @class = "input-xxlarge", placeholder = "t.d. Af hverju er himininn blár?" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Svar 1
            @Html.RadioButton("exam.ExamQuestions[" + Model.ExamQuestionNo + "].CorrectAnswerIsNo", 1)
        </label>
        <div class="controls">
            @Html.TextBox("exam.ExamQuestions[" + Model.ExamQuestionNo + "].ExamQuestionAnswer1", "", new { @class = "input-xxlarge", placeholder = "Svarmöguleiki 1" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Svar 2
            @Html.RadioButton("exam.ExamQuestions[" + Model.ExamQuestionNo + "].CorrectAnswerIsNo", 2)
        </label>
        <div class="controls">
            @Html.TextBox("exam.ExamQuestions[" + Model.ExamQuestionNo + "].ExamQuestionAnswer2", "", new { @class = "input-xxlarge", placeholder = "Svarmöguleiki 2" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Svar 3
            @Html.RadioButton("exam.ExamQuestions[" + Model.ExamQuestionNo + "].CorrectAnswerIsNo", 3)
        </label>
        <div class="controls">
            @Html.TextBox("exam.ExamQuestions[" + Model.ExamQuestionNo + "].ExamQuestionAnswer3", "", new { @class = "input-xxlarge", placeholder = "Svarmöguleiki 3" })
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Svar 4
            @Html.RadioButton("exam.ExamQuestions[" + Model.ExamQuestionNo + "].CorrectAnswerIsNo", 4)
        </label>
        <div class="controls">
            @Html.TextBox("exam.ExamQuestions[" + Model.ExamQuestionNo + "].ExamQuestionAnswer4", "", new { @class = "input-xxlarge", placeholder = "Svarmöguleiki 4" })
        </div>
    </div>
</div>
